<?php
namespace Secret\Twig\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class FilePicker extends \Symfony\Component\Form\Extension\Core\Type\FileType {

	public function buildView(FormView $view, FormInterface $form, array $options) {
		$view->vars = array_replace($view->vars, array(
			'type' => 'file'
		));
	}

	public function getName() {
		return 'filepicker';
	}
}
